
<div class="admin-list">
	<div class="page-header">
		<h1><?= lang('post_manager') ?></h1>
	</div>
	<div class="toolbar clearfix">
		<div class="navbar-form pull-left" role="action">
			<a href="<?= site_url('admin/post/form') ?>" class="btn btn-success"><span class="icon-new icon-white"></span> <?= lang('add_new') ?></a>
		</div>
		<div class="navbar-form pull-right">
			<?= formOpen(site_url('admin/post/index'), 'get', 'id="formFilter" class="formAjax"') ?>
				<?= formDropdown('user_id', $users, $user_id, 'id="filter_category_user_id" onchange="$(\'#formFilter\').trigger(\'submit\')"') ?>
				<?= formDropdown('category_id', $categories, $category_id, 'id="filter_category_id" onchange="$(\'#formFilter\').trigger(\'submit\')"') ?>
				<div class="input-group">
					<input type="text" name="keyword" value="<?= form_prep(element('keyword', $filter)) ?>" id="filter_category_search" class="form-control" placeholder="<?= lang('keywords') ?>" />
					<span class="input-group-btn">
						<button type="submit" class="btn btn-default btn-toggle"><i class="icon-search"></i><span class="sr-only"> <?= lang('search') ?></span></button>
					</span>
				</div>
				<a href="<?= siteUrl('admin/post/clear_filter') ?>" class="btn btn-warning hasTip" title="<?= lang('filter_reset') ?>"><i class="icon-undo"></i><span class="sr-only"> <?= lang('clear') ?></span></a>
			<?= formClose() ?>
		</div>
	</div>
	<div class="table-list small">
		<!-- AJAX -->
		<?= $this->load->view('backend/post/items_list'); ?>
	</div>
</div>
